home *** CD-ROM | disk | FTP | other *** search
/ Ham Radio 2000 #1 / Ham Radio 2000.iso / ham2000 / packet / thenet / x1j4_src / version.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-02-03  |  5.1 KB  |  123 lines

  1. /**************************************************************************\
  2. *                                                                          *
  3. *                                                                          *
  4. *    *****                      *****                                      *
  5. *      *****                  *****                                        *
  6. *        *****              *****                                          *
  7. *          *****          *****                                            *
  8. *            *****      *****                                              *
  9. *              *****  *****                                                *
  10. *            *****      *****                                              *
  11. *          *****          *****          The Firmware. The Net.            *
  12. *        *****              *****        Portable. Compatible.             *
  13. *      *****                  *****      Public Domain.                    *
  14. *    *****                      *****    By NORD><LINK.                    *
  15. *                                                                          *
  16. *                                                                          *
  17. *                                                                          *
  18. *    version.h  -   Headerfile to tailor version                           *
  19. *                                                                          *
  20. \**************************************************************************/
  21.  
  22. /* Compile time switch definitions :
  23.  * WARNING - not all combinations will work. They have grown like topsy
  24.  *           and have been designed to allow variants to be built, but
  25.  *           this has never been tested for most permutations. If you
  26.  *           find errors, tell me !
  27.  *           The most basic is MODIFIED - this must always be present
  28.  *           unless you want the original version. Simplest thing is
  29.  *           to define MAXVERSION which puts it all in !
  30.  *
  31.  *           The PORTABLE keyword enables the use of Z80 assembler
  32.  *           versions of some modules. If it is not used, some
  33.  *           features will be omitted so it must be used for the Z80.
  34.  *           If other versions are included though, it will need to be
  35.  *           rewritten as, for example 'Z80_TNC2' to distinguish types
  36.  *
  37.  *    MAXVERSION - include almost all the rest !
  38.  *    PORTABLE   - do not use assembly language versions of modules
  39.  *    BANKED     - Split the code in two for bank switching in TNC2
  40.  *    NODOWNLINK - bar the use of downlinking connect commands
  41.  *    NOCQ       - remove from the code the CQ command
  42.  *    FIRMWARE   - compile TheFirmware rather than TheNet
  43.  *    STATSCMD   - include level 1 stats info
  44.  *    MANAGED    - include the management commands and collection routines
  45.  *    HOSTMODE   - include hardware handshake host ctrl, BBS and HOST cmds
  46.  *    KISSMODE   - include rs232 kiss driver code
  47.  *    TALKCMD    - include conferencing command
  48.  *    MONITORCMD - include the MHEARD command and collection routines
  49.  *    CWID       - include  CWID keyer code
  50.  *    DXCLUSTER  - include this only if HOSTCMD is defined
  51.  *    CLOSEDOWN  - include closedown command
  52.  *    ACL        - include access control list and related functions
  53.  *    METERS     - include the ADC stuff
  54.  *    MOD_MTU    - include the s/w settable MTU parameters and command
  55.  *    INTEGRITY  - include the linked list integrity checking routines
  56.  *    IPROUTE    - include the IP router and related bits.
  57.  *
  58.  * Released as TheNet X-1J, September 1993
  59.  *
  60.  *    TEXNET     - include TexNet interface code
  61.  */
  62.  
  63. #define NOHILOW
  64.  
  65. /*                                                         Festlegungen   */
  66. /**************************************************************************/
  67.  
  68.                               /* Portnummern :                            */
  69. #ifdef FIRMWARE
  70. #define NUMPORTS    1
  71. #define MAXPORTMASK 1
  72. #else
  73. #define HDLCPORT    0         /*   Packet-Port                            */
  74. #define ASYNPORT    1         /*   RS232 Crosslink-Port                   */
  75. #define NUMPORTS    2         /* Total number of ports                    */
  76. #define MAXPORTMASK 3         /* mask to AND with a port number           */
  77. #endif
  78.  
  79. /* Definitions that control the compiled version
  80.  */
  81.  
  82. #ifdef MAXVERSION
  83. #define LINKSCMD
  84. #define MONITORCMD
  85. #define STATSCMD
  86. #define HOSTMODE
  87. #define KISSMODE
  88. #define TALKCMD
  89. #define CWID
  90. #define MANAGED
  91. #define DXCLUSTER
  92. #define CLOSEDOWN
  93. #define ACL
  94. /* #define ACL_DISCMD_OVERRIDE */
  95. #define IPROUTE
  96. #define INTEGRITY
  97. #define MOD_MTU
  98. #define METERS
  99. #define ALL_METERS
  100. #define TEXNET
  101. #define MODIFIED
  102. #define PORTFLUSH
  103. #define L3MONITOR
  104. #define CHOKE_FLAGS
  105. #endif
  106.  
  107. #ifdef MODIFIED
  108. #define MODBYSTRING "\015\012By DF2AU/DC4OX/G8KBB\015\012"
  109. #ifndef SIGNONTEXT
  110. #define SIGNONTEXT "TheNet X-1J4 "
  111. #endif
  112. #endif
  113.  
  114.  
  115. #ifdef METERS
  116. #define ADC 0x20
  117. #define CH1_START 4
  118. #define CH2_START 5
  119. #define CH3_START 6
  120. #define CH4_START 7
  121. #endif
  122.  
  123.